package cn.com.sise.service.impl;

import cn.com.sise.dao.FavouriteHistoryDao;
import cn.com.sise.pojo.FavouriteHistory;
import cn.com.sise.service.FavouriteHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FavouriteHistoryServiceImpl implements FavouriteHistoryService {
    private FavouriteHistoryDao favouriteHistoryDao;

    @Autowired
    public void setFavouriteHistoryDao(FavouriteHistoryDao favouriteHistoryDao) {
        this.favouriteHistoryDao = favouriteHistoryDao;
    }

    public int doAddFavouriteWord(FavouriteHistory favouriteHistory) {
        return favouriteHistoryDao.doAddFavouriteWord(favouriteHistory);
    }

    public int doAddFavouriteResources(FavouriteHistory favouriteHistory) {
        return favouriteHistoryDao.doAddFavouriteResources(favouriteHistory);
    }

    public void doRemoveFavouriteWord(FavouriteHistory favouriteHistory) {
        favouriteHistoryDao.doRemoveFavouriteWord(favouriteHistory);
    }

    public void doRemoveFavouriteResources(FavouriteHistory favouriteHistory) {
        favouriteHistoryDao.doRemoveFavouriteResources(favouriteHistory);
    }

    public int doAddHistoryWord(FavouriteHistory favouriteHistory) {
        return favouriteHistoryDao.doAddHistoryWord(favouriteHistory);
    }

    public int doAddHistoryResources(FavouriteHistory favouriteHistory) {
        return favouriteHistoryDao.doAddHistoryResources(favouriteHistory);
    }

    public void doRemoveHistoryWord(FavouriteHistory favouriteHistory) {
        favouriteHistoryDao.doRemoveHistoryWord(favouriteHistory);
    }

    public void doRemoveHistoryResources(FavouriteHistory favouriteHistory) {
        favouriteHistoryDao.doRemoveHistoryResources(favouriteHistory);
    }
}
